/******************** 变量 ********************/

/******************** mixin ********************/

/******************** 组件 ********************/

.lv-group {
  display: flex;
  font-size: $font-size-base;
  font-family: $font-family;
  line-height: $line-height-coeff;
}

.lv-group-row {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;

  > .lv-group-border-overlap {
    margin-right: -0.01rem;
    border-radius: 0;

    &:first-child {
      border-top-left-radius: $border-radius-md;
      border-bottom-left-radius: $border-radius-md;
    }

    &:last-child {
      border-top-right-radius: $border-radius-md;
      border-bottom-right-radius: $border-radius-md;
    }
  }
}

.lv-group-column {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  > .lv-group-border-overlap {
    margin-bottom: -0.01rem;
    border-radius: 0;

    &:first-child {
      border-top-left-radius: $border-radius-md;
      border-top-right-radius: $border-radius-md;
    }

    &:last-child {
      border-bottom-right-radius: $border-radius-md;
      border-bottom-left-radius: $border-radius-md;
    }
  }
}

.lv-group.lv-group-no-gutter > * {
  position: relative;

  &:hover {
    z-index: 2;
  }

  &:focus {
    z-index: 1;
  }

  &:disabled,
  &[disabled] {
    z-index: 0;
  }
}

.lv-group-column-single {
  flex-wrap: nowrap;
}

.lv-group-column-multiple,
.lv-group-row-wrap {
  flex-wrap: wrap;
}
